package io.github.bloquesoft.entity.storage.mybatisplus.example.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.github.bloquesoft.entity.clazz.annotation.ParentId;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Transient;

@AllArgsConstructor
@Data
public class Book {

    @Id
    private Integer id;

    private String name;

    @ParentId
    private Integer studentId;

    public Book(){}
}
